/**
 * @author swiip
 * Describes the First Component
 */
 
$C.create({
	name:"Components.firstComponent",
	/**
	 * Set up the Component dependencies
	 * The component won't launch main() unless
	 *  every dependencies in the setup are available
	 */
	setup:{
		dependencies: {
			components:{},
			lib:[]
		}
	},
	/**
	 * Start the Component itself
	 */
	initialize: function() {
		this.fireHelloWorld("Hello, World!");
		Logger.log("First component loaded !!");
	},
	onHelloWorld: function(name, data) {
		Logger.warn("event "+name+" called. Data: "+data);
	},
	onLibrary: function(name,data) {
		this.onHelloWorld(name,data);
	},
	fireHelloWorld: function(){Logger.warn("Cette fonction ne devrait pas etre appelee!")}
});